<template>
    <p>父组件当前值：{{number}}</p>
    <CustomSonComponent @updateCount="updateEmitCount" />
</template>
<script setup>
import { ref } from 'vue'
import CustomSonComponent from './CustomSonComponent.vue';
const number = ref(10)
const updateEmitCount = (n) => {
    number.value += n
}
</script>